{extend name="template/base" /}
{block name="content"}
<div class="page-container">
    <form class="form form-horizontal" id="form" method="post" action="{:\\think\\Request::instance()->baseUrl()}">
        <input type="hidden" name="id" value="{:isset($vo.id)?$vo.id:''}">
        <div id="tab_demo" class="HuiTab">
            <div class="col-xs-3 col-sm-3"></div>
            <div class="tabBar cl"><span>基础</span><span>设计</span><span>高级</span></div>
            <div class="col-xs-3 col-sm-3"></div>
        </div>
        <div class='clear'></div>
        <div id='tab_con'>
            <div class="tabCon">
                <div class="row cl">
                    <label class="form-label col-xs-3 col-sm-3"><span class="c-red">*</span>模型标识：</label>
                    <div class="formControls col-xs-6 col-sm-6">
                        <input type="text" class="input-text" value="{$vo.name ?? ''}" placeholder="" name="name" datatype="*" nullmsg="请填写模型标识">
                    </div>
                    <div class="col-xs-3 col-sm-3"></div>
                </div>
                <div class="row cl">
                    <label class="form-label col-xs-3 col-sm-3"><span class="c-red">*</span>模型名称：</label>
                    <div class="formControls col-xs-6 col-sm-6">
                        <input type="text" class="input-text" value="{$vo.title ?? ''}" placeholder="" name="title" datatype="*" nullmsg="请填写模型名称">
                    </div>
                    <div class="col-xs-3 col-sm-3"></div>
                </div>
                <div class="formControls col-xs-6 col-sm-6">
                    <div class="select-box">
                        <select name='extend' class='select'>
                            <option value='0'>独立模型</option>
                            <option value='0'>文档模型</option>
                        </select>
                    </div>
                </div>
            </div>
            <div class="tabCon"></div>
            <div class="tabCon"></div>
        <div class="row cl">
            <div class="col-xs-8 col-sm-9 col-xs-offset-4 col-sm-offset-3">
                <button type="submit" class="btn btn-primary radius">&nbsp;&nbsp;提交&nbsp;&nbsp;</button>
                <button type="button" class="btn btn-default radius ml-20" onClick="layer_close();">&nbsp;&nbsp;取消&nbsp;&nbsp;</button>
            </div>
        </div>
        </div>
    </form>
</div>
{/block}
{block name="script"}
<script type="text/javascript" src="__LIB__/Validform/5.3.2/Validform.min.js"></script>
<script>
    $(function () {
        $("[name='status'][value='{$vo.status ?? '1'}']").attr("checked", true);

        $('.skin-minimal input').iCheck({
            checkboxClass: 'icheckbox-blue',
            radioClass: 'iradio-blue',
            increaseArea: '20%'
        });

        $("#form").Validform({
            tiptype: 2,
            ajaxPost: true,
            showAllError: true,
            callback: function (ret) {
                ajax_progress(ret);
            }
        });
        
        $(function(){
            $.Huitab("#tab_demo .tabBar span","#tab_con .tabCon","current","click","0");
        });
    })
</script>
{/block}